﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Data;

namespace ObjectModel.PowerPoint.RulesModel
{
    public class Rule
    {
        private bool mResult;
        
        public bool Result
        {
            get { return mResult; }
            set
            {
                mResult = value;
                Resolve();
            }

        }
        
        public ObservableCollection<Action> Actions { get; set; }

        public void Resolve()
        {

			DataTable table = new DataTable();
        	table.Columns.Add("Title", typeof(string));
        	table.Rows.Add("Title1");

        	string s = (string)table.Rows[0][0];

            if (Result)
                foreach (Action a in Actions)
                    a.Perform();
        }
    }
}
